package com.lxmes.business.controller;

import com.lxmes.business.service.ChukuInfoWebServiceService;
import com.lxmes.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(tags="入库单接口管理")
@RestController
@RequestMapping("/businesswb/chukuWebService")
public class ChukuInfoWebServiceController {

    @Autowired
    private ChukuInfoWebServiceService chukuInfoWebServiceService;

     /**
     * U8执行出库
     *
     * */
    @GetMapping("/zhixingUChuku/{ids}")
    public AjaxResult zhixingUChuku(@PathVariable Long[] ids) {

        Map<String, String> map = chukuInfoWebServiceService.zhixingUCuku(ids);
        if (map.get("Success") == "True") {
            return AjaxResult.success("执行成功！");
        } else {
            return AjaxResult.error(map.get("errMsg"));
        }

    }
}
